package liantiaoxifen.client;

import java.io.PrintWriter;
import java.util.Scanner;

public class Dao {
    private Scanner scan=new Scanner(System.in);


    public void sendDataLogin(PrintWriter pw){
        System.out.println("请输入用户名~");
        String userName=scan.nextLine();
        System.out.println("请输入密码~");
        String passWord=scan.nextLine();
        pw.println(userName);
        pw.println(passWord);
    }

    public void sendDataRegister(PrintWriter pw){
        System.out.println("请输入用户名~");
        String userName=scan.nextLine();
        System.out.println("请输入密码~");
        String passWord=scan.nextLine();
        System.out.println("请输入昵称~");
        String nickName=scan.nextLine();
        pw.println(userName);
        pw.println(passWord);
        pw.println(nickName);
    }
}
